-- GENERATED SPELL FOR [Prophet Velen] --


function spell0_17468(pUnit, Event) --@Holy Blast,n/a--
pUnit:FullCastSpellOnTarget(59700,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17468', 677, 1)
end

function spell1_17468(pUnit, Event) --@Holy Nova,Self--
pUnit:FullCastSpellOnTarget(59701,pUnit)
pUnit:RegisterEvent('Sorts_17468', 531, 1)
end

function spell2_17468(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(59703,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17468', 2500, 1)
end

function spell3_17468(pUnit, Event) --@Prayer of Healing,Self--
pUnit:FullCastSpellOnTarget(59698,pUnit)
pUnit:RegisterEvent('Sorts_17468', 3000, 1)
end

function spell4_17468(pUnit, Event) --@Staff Strike,n/a--
pUnit:FullCastSpellOnTarget(33542,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17468', 2281, 1)
end

function Sorts_17468(pUnit, Event)
local choix_sorts_17468 = math.random(0, 4)
if choix_sorts_17468 == 0 then
pUnit:RegisterEvent('spell0_17468', 1, 1)
end
if choix_sorts_17468 == 1 then
pUnit:RegisterEvent('spell1_17468', 1, 1)
end
if choix_sorts_17468 == 2 then
pUnit:RegisterEvent('spell2_17468', 1, 1)
end
if choix_sorts_17468 == 3 then
pUnit:RegisterEvent('spell3_17468', 1, 1)
end
if choix_sorts_17468 == 4 then
pUnit:RegisterEvent('spell4_17468', 1, 1)
end
end

function mob17468_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17468', math.random(1500, 3000), 1)
end

function mob17468_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17468_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17468_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17468, 1, 'mob17468_Action')
RegisterUnitEvent(17468, 2, 'mob17468_Leave')
RegisterUnitEvent(17468, 3, 'mob17468_Kill')
RegisterUnitEvent(17468, 4, 'mob17468_Die')
